package org.wlgzs.shop.bean;

import lombok.Data;

import javax.validation.constraints.NotNull;
@Data
public class IntegralExchange {

    /**
     *
     *积分变动id
     */
    private Integer id;

    /**
     *
     *用户id
     */
    @NotNull
    private Integer userId;

    /**
     *
     *变化明细
     */
    @NotNull
    private String detail;

    /**
     *积分增添数额
     *
     */
    @NotNull
    private Integer integralSize;

    /**
     *
     *积分兑换时间
     */
    @NotNull
    private String exchangeTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail == null ? null : detail.trim();
    }

    public Integer getIntegralSize() {
        return integralSize;
    }

    public void setIntegralSize(Integer integralSize) {
        this.integralSize = integralSize;
    }

    public String getExchangeTime() {
        return exchangeTime;
    }

    public void setExchangeTime(String exchangeTime) {
        this.exchangeTime = exchangeTime == null ? null : exchangeTime.trim();
    }
}